<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>single</title>
	<link rel="stylesheet" href="/internship_tp/Application/Home/View/Public/style/style.css">
	<script type="text/javascript" src="/internship_tp/Application/Home/View/Public/js/jquery.min.js"></script>
	<script type="text/javascript" src="/internship_tp/Application/Home/View/Public/js/main.js"></script>
	<script src="/internship_tp/Application/Home/View/Public/js/addCar.js"></script>
</head>
<body>
<script type="text/javascript" src="/internship_tp/Application/Home/View/Public/js/requ.js"></script>
	<div class="header">
		<div class="header-top">
	<ul>
		<?php if($username): ?><a href="<?php echo U('Account/userInfo');?>">
				<li><a href="#">您好&nbsp;&nbsp;<?php echo ($username); ?></a></li>
			</a>
		<?php else: ?>
			<a href="<?php echo U('account/index');?>">
				<li><a href="<?php echo U('Account/index');?>">登录</a></li>
			</a><?php endif; ?>
		<li><a href="<?php echo U('Account/register');?>">注册</a></li>
		<li class="cartnav"><a href="<?php echo U('Product/car');?>"><span></span><div id="carCount">购物车(<?php echo ($carCount); ?>)</div></a></li>
	</ul>
	<?php if($username): ?><!--<div class="cartshow"><p>购物车中还没有商品，赶紧选购吧！</p></div>-->
		<?php else: ?>
			<div class="cartshow"><p>购物车中还没有商品，赶紧选购吧！</p></div><?php endif; ?>
</div>
<div class="nav">
	<a href="<?php echo U('Index/index');?>" class="home"><span></span></a>
	<ul>
		<?php if(is_array($top)): foreach($top as $key=>$tv): ?><li><a href="<?php echo U('Product/index',array('id'=>$tv[id]));?>"><?php echo ($tv["name"]); ?></a></li><?php endforeach; endif; ?>
	</ul>
	<div class="search">
		<input type="text" placeholder="小米">
		<input type="button" value="L">
	</div>
</div>

	</div>
	<div class="single-header">
		<div>
			<a href="javascript:;">概述</a>
			<a href="javascript:;">艺术与设计</a>
			<a href="javascript:;">参数</a>
			<a href="javascript:;">用户评价</a>
		</div>
	</div>
	<div class="single-container">
		<div class="single-banner">
			<div class="banner">
				<img src="/internship_tp/Application/Public/Uploads/<?php echo ($det['0']['photourl']); echo ($det['0']['photoname']); ?>" alt="" index="1" style="display: block;">
				<img src="/internship_tp/Application/Public/Uploads/<?php echo ($det['1']['photourl']); echo ($det['1']['photoname']); ?>" alt="" index="2">
				<img src="/internship_tp/Application/Public/Uploads/<?php echo ($det['2']['photourl']); echo ($det['2']['photoname']); ?>" alt="" index="3">
				<input type="button" id="prev">
				<input type="button" id="next">
				<div>
					<span class="on"></span>
					<span></span>
					<span></span>
				</div>
			</div>
			
		</div>
		<div class="pro-info">
			<?php if(is_array($pro)): foreach($pro as $key=>$pv): ?><h2><?php echo ($pv["name"]); ?></h2>
				<p>6.4" 全面屏 / 全陶瓷机身 / 骁龙 821 性能版 / 4400mAh 大电量 / 陶瓷声学系统 / 超声波距离感应</p>
				<span><?php echo ($pv["price1"]); ?>元</span>
				<hr>
				<h3>选择版本</h3><p>骁龙821最高主频，2.35GHz，Adreno 530 图形处理器</p>
				<a href="javascript:;" class="btn-tags active">
					<span class="name"><?php echo ($pv["content1"]); ?></span>
					<span class="price"><?php echo ($pv["price1"]); ?>元</span>
				</a>
				<a href="javascript:;" class="btn-tags">
					<span class="name"><?php echo ($pv["content2"]); ?></span>
					<span class="price"><?php echo ($pv["price2"]); ?>元</span>
				</a>

				<h3>分期类型</h3><p>	根据您分期类型，每月支付对应利息</p>
				<a href="javascript:;" class="btn-tags2 active">
					<span class="name center">不分期</span>
				</a>
				<a href="javascript:;" class="btn-tags2">
					<span class="name">￥1022×3期（含手续费）</span>
				</a>
				<a href="javascript:;" class="btn-tags2">
					<span class="name">￥560×6期（含手续费）</span>
				</a>
				<a href="javascript:;" class="btn-tags2">
					<span class="name">￥260×12期（含手续费）</span>
				</a>

				<input type="hidden" class="id" name="" value="<?php echo ($pv["id"]); ?>">
				<input type="hidden" id="price" name="" value="<?php echo ($pv["price1"]); ?>"><?php endforeach; endif; ?>
			<h3>选择颜色</h3>
			<?php if(is_array($color)): foreach($color as $ck=>$cv): if($ck == 0): ?><a href="javascript:;" class="btn-color active-color">
				<?php else: ?> <a href="javascript:;" class="btn-color"><?php endif; ?>
					<span><?php echo ($cv); ?></span>
				</a><?php endforeach; endif; ?>
			
			<div class="single-title">
				<p>小米MIX全网通 4GB内存＋128GB容量 黑色</p>
				<span>总计：3499元</span>
				<a href="javascript:;" class="addCar" id="single-btn">加入购物车</a>
			</div>
		</div>
		<div class="pro-intr">
			<img src="/internship_tp/Application/Home/View/Public/images/in1.jpg" alt="">
			<img src="/internship_tp/Application/Home/View/Public/images/in2.jpg" alt="">
		</div>
	</div>
	<div class="footer">
		<div class="footer-top">
	<ul>
		<li><a href="javascript:;">预约维修服务</a></li>
		<li><a href="javascript:;">7天无理由退货</a></li>
		<li><a href="javascript:;">15天免费换货</a></li>
		<li><a href="javascript:;">满150元包邮</a></li>
		<li><a href="javascript:;">520余家售后网点</a></li>
	</ul>
</div>
<div class="footer-center">
	<div class="footer-left">
		<ul>
			<span>帮助中心</span>
			<li><a href="javascript:;">账户管理</a></li>
			<li><a href="javascript:;">购物指南</a></li>
			<li><a href="javascript:;">订单操作</a></li>
		</ul>
		<ul>
			<span>服务支持</span>
			<li><a href="javascript:;">售后政策</a></li>
			<li><a href="javascript:;">自主服务</a></li>
			<li><a href="javascript:;">相关下载</a></li>
		</ul>
		<ul>
			<span>线下门店</span>
			<li><a href="javascript:;">小米之家</a></li>
			<li><a href="javascript:;">服务网点</a></li>
			<li><a href="javascript:;">零售网点</a></li>
		</ul>
		<ul>
			<span>关于小米</span>
			<li><a href="javascript:;">了解小米</a></li>
			<li><a href="javascript:;">加入小米</a></li>
			<li><a href="javascript:;">联系我们</a></li>
		</ul>
		<ul>
			<span>关注我们</span>
			<li><a href="javascript:;">新浪微博</a></li>
			<li><a href="javascript:;">小米部落</a></li>
			<li><a href="javascript:;">官方微信</a></li>
		</ul>
		<ul>
			<span>特色服务</span>
			<li><a href="javascript:;">F码通道</a></li>
			<li><a href="javascript:;">礼物码</a></li>
			<li><a href="javascript:;">防伪查询</a></li>
		</ul>
	</div>
	<div class="footer-right">
		<span>400-100-5678</span>
		<p>周一至周日8:00-18:00</p>
		<p>(仅收市话费)</p>
		<a href="javascript:;">24小时在线客服</a>
	</div>
</div>
<div class="footer-bottom">
	<span></span>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<a href="javascript:;">小米商城</a>
	<p>©mi.com 京ICP证110507号 京ICP备10046444号 京公网安备11010802020134号 京网文[2014]0059-0009号
违法和不良信息举报电话：185-0130-1238，本网站所列数据，除特殊说明，所有数据均出自我司实验室测试</p>
</div>
	</div>
</body>
</html>